Skip to content

fix: Fix error when virtual_machine is None in get_virtual_machine_name #97

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 9, 2025

Conversation

lhhyung
Copy link
Member

@lhhyung lhhyung commented Apr 8, 2025

Category

  • New feature
  • Bug fix
  • Improvement
  • Refactor
  • etc

Description

Fix error when virtual_machine is None in get_virtual_machine_name

Known issue

@lhhyung lhhyung added bug Something isn't working pass/signedoff labels Apr 8, 2025
@lhhyung lhhyung requested a review from ImMin5 April 8, 2025 08:30
@lhhyung lhhyung self-assigned this Apr 8, 2025
Copy link

github-actions bot commented Apr 8, 2025

⚠️ @lhhyung the signed-off-by was not found in the following 1 commits:

  • b84803c: fix: Fix error when virtual_machine is None in get_virtual_machine_name

✅ Why it is required

The Developer Certificate of Origin (DCO) is a lightweight way for contributors to certify that they wrote or otherwise have the right to submit the code they are contributing to the project. Here is the full text of the DCO.

Contributors sign-off that they adhere to these requirements by adding a Signed-off-by line to commit messages.

This is my commit message

Signed-off-by: Random Developer <[email protected]>

Git even has a -s command line option to append this automatically to your commit message:

$ git commit -s -m 'This is my commit message'

Copy link
Member

@ImMin5 ImMin5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@lhhyung lhhyung requested a review from Copilot April 9, 2025 02:40
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

src/plugin/manager/network_security_groups/instance_manager.py:311

  • Consider adding test cases for get_virtual_machine_name to verify that the function handles cases where virtual_machine is None and returns the expected result.
_virtual_machine := network_interface_info.get("virtual_machine")

@lhhyung lhhyung merged commit 798e2fc into cloudforet-io:master Apr 9, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants